import {httpGet, httpPost, httpDelete, httpPut} from '../services/http'
import {BaseDTO} from './base'
declare type Int64 = number

export interface CreateVoucherDTO {
  id: string
  money: string
  createDate: string
  customerInfo: string
}

export interface CustomerInfoDTO {
  id: string
  name: string
  tell: string
  idNumber: string
}

export default {
  createVoucher(data: {customerId: string; getInId: string}): Promise<CreateVoucherDTO> {
    let path = `/api/pos-app/createVoucher`
    return httpPost(path, data).then(res => res.data.posVoucher)
  },
}
